# -*- mode: snippet -*-
# name: for (var i = 0; i < arr.length; ++i) { ... }
# key: fori
# uuid: fori
# --
for (var ${1:i} = ${2:0}; $1 < ${3:${4:arr}.length}; ++$1) {
    `%`$0
}